/**
 * allowidles.h is part of Gedule.
 *
 * Gedule is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gedule is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Gedule.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef ALLOWIDLES_H
#define ALLOWIDLES_H

#include "../modelconstraint.h"

class AllowIdles : public ModelConstraint
{
public:
    AllowIdles( bool a_allowIdles = false );

    virtual ~AllowIdles();

    virtual void Accept( Visitor * a_visitor, bool a_depthFirst = true );

    virtual std::string Print() const;

    void IsAllowIdles( bool a_allowIdles );

    bool IsAllowIdles() const;

private:

    // Fields.
    // -------

    bool m_allowIdles;

    static const std::string ALLOW_IDLES_CONSTRAINT;

    // Methods.
    // --------

    // Protect default copy constructor.
    AllowIdles( const AllowIdles & a_other );

    // Protect default operator =.
    AllowIdles & operator = ( const AllowIdles & a_other );
};

#endif // ALLOWIDLES_H
